import { Component } from '@angular/core';

@Component({
  selector: 'app-demo2',
  templateUrl: './demo2.component.html'
})
export class Demo2Component {
  value: Date;

  selectNow(timePicker) {
    this.value = new Date();
    timePicker.close();
  }
}
